package cn.tramy.pinxian.wind.configuration

import cn.tramy.pinxian.wind.command.annotation.CommandHandlerBeanPostProcessor
import cn.tramy.pinxian.wind.event.annotation.EventHandlerBeanPostProcessor
import cn.tramy.pinxian.wind.handler.registry.DefaultHandlerRegistry
import cn.tramy.pinxian.wind.handler.registry.HandlerRegistry
import org.springframework.context.annotation.Bean

class WindBeanPostProcessConfiguration {
    @Bean
    fun handlerRegister(): HandlerRegistry = DefaultHandlerRegistry()

    @Bean
    fun eventHandlerBeanPostProcessor() = EventHandlerBeanPostProcessor()

    @Bean
    fun commandHandlerBeanPostProcessor() = CommandHandlerBeanPostProcessor()
}